<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>swiper</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    ul {
      list-style: none;
    }
    .box {
      /* width: 700px;
      height: 400px; */
      /* margin: 100px auto; */
    }
    .box .con {
      overflow: hidden;
      width: 700px;
      height: 400px;
      border: 1px solid #ccc;
      position: relative;
      margin: auto;
    }
    .box .con ul.container {
      width: 500%;
      height: 100%;
      position: absolute;
      left: 0;
      transition: 0.3s linear;
    }
    .swiper_img {
      float: left;
      width: 700px;
      height: 400px;
    }
    .img1 {
      background-color: #f00;
    }
    .img2 {
      background-color: #ff0;
    }
    .img3 {
      background-color: #f0f;
    }
    .img4 {
      background-color: #0ff;
    }
    .img5 {
      background-color: #0cc;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="con">
      <ul class="container">
        <li class="img1 swiper_img">1</li>
        <li class="img2 swiper_img">2</li>
        <li class="img3 swiper_img">3</li>
        <li class="img4 swiper_img">4</li>
        <li class="img5 swiper_img">5</li>
      </ul>
    </div>
  </div>
</body>
</html>